# -*- mode: snippet -*-
# name: accumulate w/ closure
# key: acl
# --
auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) {
  `%`$3
});